<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysTermOfPaymentBean.id}"/>
		<f:event type="preRenderView" listener="#{sysTermOfPaymentBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sys Term Of Payment"/>

	<ui:define name="header">
		Sys Term Of Payment
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sysTermOfPaymentBean.id}">
				Edit existing Sys Term Of Payment
			</c:when>
			<c:otherwise>
				Create a new Sys Term Of Payment
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentNo" value="Term Of Payment No:"/>
				<h:panelGroup>
					<h:inputText id="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentNo" required="true" value="#{sysTermOfPaymentBean.sysTermOfPayment.termOfPaymentNo}"/>
					<h:message for="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentCode" value="Term Of Payment Code:"/>
				<h:panelGroup>
					<h:inputText id="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentCode" maxLength="50" required="true" value="#{sysTermOfPaymentBean.sysTermOfPayment.termOfPaymentCode}"/>
					<h:message for="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentDescr" value="Term Of Payment Descr:"/>
				<h:panelGroup>
					<h:inputText id="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentDescr" maxLength="300" value="#{sysTermOfPaymentBean.sysTermOfPayment.termOfPaymentDescr}"/>
					<h:message for="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentSdSaleOrders" value="Sd Sale Orders:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysTermOfPaymentBean.sysTermOfPayment.sdSaleOrders}"/>
					<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentSdSaleOrders" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="So No"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoNo" value="#{_item.soNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoNo" value="#{sdSaleOrderBean.add.soNo}"/>
								<h:message for="sdSaleOrderBeanAddSoNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Code"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoCode" value="#{_item.soCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoCode" maxLength="50" value="#{sdSaleOrderBean.add.soCode}"/>
								<h:message for="sdSaleOrderBeanAddSoCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Descr"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoDescr" value="#{_item.soDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoDescr" maxLength="100" value="#{sdSaleOrderBean.add.soDescr}"/>
								<h:message for="sdSaleOrderBeanAddSoDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Date"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoDate" value="#{_item.soDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoDate" maxLength="10" value="#{sdSaleOrderBean.add.soDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdSaleOrderBeanAddSoDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Discount Perc"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoDiscountPerc" value="#{_item.soDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoDiscountPerc" value="#{sdSaleOrderBean.add.soDiscountPerc}"/>
								<h:message for="sdSaleOrderBeanAddSoDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdSaleOrderBean.added)}" id="sysTermOfPaymentBeanSysTermOfPaymentSdSaleOrdersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdSaleOrderBean.add.sysTermOfPayment}" value="#{sysTermOfPaymentBean.sysTermOfPayment}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentPcPurchaseOrders" value="Pc Purchase Orders:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysTermOfPaymentBean.sysTermOfPayment.pcPurchaseOrders}"/>
					<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentPcPurchaseOrders" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po No"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoNo" value="#{_item.poNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoNo" value="#{pcPurchaseOrderBean.add.poNo}"/>
								<h:message for="pcPurchaseOrderBeanAddPoNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Code"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoCode" value="#{_item.poCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoCode" maxLength="50" value="#{pcPurchaseOrderBean.add.poCode}"/>
								<h:message for="pcPurchaseOrderBeanAddPoCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Descr"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoDescr" value="#{_item.poDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoDescr" maxLength="100" value="#{pcPurchaseOrderBean.add.poDescr}"/>
								<h:message for="pcPurchaseOrderBeanAddPoDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Date"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoDate" value="#{_item.poDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoDate" maxLength="10" value="#{pcPurchaseOrderBean.add.poDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="pcPurchaseOrderBeanAddPoDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Discount Perc"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoDiscountPerc" value="#{_item.poDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoDiscountPerc" value="#{pcPurchaseOrderBean.add.poDiscountPerc}"/>
								<h:message for="pcPurchaseOrderBeanAddPoDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseOrderBean.added)}" id="sysTermOfPaymentBeanSysTermOfPaymentPcPurchaseOrdersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseOrderBean.add.sysTermOfPayment}" value="#{sysTermOfPaymentBean.sysTermOfPayment}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentPcPurchaseReqs" value="Pc Purchase Reqs:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysTermOfPaymentBean.sysTermOfPayment.pcPurchaseReqs}"/>
					<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentPcPurchaseReqs" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr No"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReq/view">
								<f:param name="id" value="#{_item.prNo}"/>
								<h:outputText id="itemPrNo" value="#{_item.prNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqBeanAddPrNo" value="#{pcPurchaseReqBean.add.prNo}"/>
								<h:message for="pcPurchaseReqBeanAddPrNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Code"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReq/view">
								<f:param name="id" value="#{_item.prNo}"/>
								<h:outputText id="itemPrCode" value="#{_item.prCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqBeanAddPrCode" maxLength="50" value="#{pcPurchaseReqBean.add.prCode}"/>
								<h:message for="pcPurchaseReqBeanAddPrCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Descr"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReq/view">
								<f:param name="id" value="#{_item.prNo}"/>
								<h:outputText id="itemPrDescr" value="#{_item.prDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqBeanAddPrDescr" maxLength="100" value="#{pcPurchaseReqBean.add.prDescr}"/>
								<h:message for="pcPurchaseReqBeanAddPrDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Date"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReq/view">
								<f:param name="id" value="#{_item.prNo}"/>
								<h:outputText id="itemPrDate" value="#{_item.prDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqBeanAddPrDate" maxLength="10" value="#{pcPurchaseReqBean.add.prDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="pcPurchaseReqBeanAddPrDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Discount Perc"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReq/view">
								<f:param name="id" value="#{_item.prNo}"/>
								<h:outputText id="itemPrDiscountPerc" value="#{_item.prDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqBeanAddPrDiscountPerc" value="#{pcPurchaseReqBean.add.prDiscountPerc}"/>
								<h:message for="pcPurchaseReqBeanAddPrDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseReqBean.added)}" id="sysTermOfPaymentBeanSysTermOfPaymentPcPurchaseReqsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseReqBean.add.sysTermOfPayment}" value="#{sysTermOfPaymentBean.sysTermOfPayment}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentSdCustTermOfPayments" value="Sd Cust Term Of Payments:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysTermOfPaymentBean.sysTermOfPayment.sdCustTermOfPayments}"/>
					<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentSdCustTermOfPayments" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sd Cust"/>
							</f:facet>
							<h:link outcome="/sdCustTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSdCust" value="#{forgeview:display(_item.sdCust)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sdCustBean.converter}" id="sdCustTermOfPaymentBeanAddSdCust" value="#{sdCustTermOfPaymentBean.add.sdCust}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdCustTermOfPaymentBeanAddSdCust" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Term Of Payment Effective Date"/>
							</f:facet>
							<h:link outcome="/sdCustTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustTermOfPaymentEffectiveDate" value="#{_item.custTermOfPaymentEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustTermOfPaymentBeanAddCustTermOfPaymentEffectiveDate" maxLength="10" value="#{sdCustTermOfPaymentBean.add.custTermOfPaymentEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdCustTermOfPaymentBeanAddCustTermOfPaymentEffectiveDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Term Of Payment Expire Date"/>
							</f:facet>
							<h:link outcome="/sdCustTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustTermOfPaymentExpireDate" value="#{_item.custTermOfPaymentExpireDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustTermOfPaymentBeanAddCustTermOfPaymentExpireDate" maxLength="10" value="#{sdCustTermOfPaymentBean.add.custTermOfPaymentExpireDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdCustTermOfPaymentBeanAddCustTermOfPaymentExpireDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Term Of Payment Is Active"/>
							</f:facet>
							<h:link outcome="/sdCustTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustTermOfPaymentIsActive" value="#{_item.custTermOfPaymentIsActive}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustTermOfPaymentBeanAddCustTermOfPaymentIsActive" value="#{sdCustTermOfPaymentBean.add.custTermOfPaymentIsActive}"/>
								<h:message for="sdCustTermOfPaymentBeanAddCustTermOfPaymentIsActive" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustTermOfPaymentBean.added)}" id="sysTermOfPaymentBeanSysTermOfPaymentSdCustTermOfPaymentsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustTermOfPaymentBean.add.sysTermOfPayment}" value="#{sysTermOfPaymentBean.sysTermOfPayment}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentMmSupplierTermOfPayments" value="Mm Supplier Term Of Payments:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysTermOfPaymentBean.sysTermOfPayment.mmSupplierTermOfPayments}"/>
					<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentMmSupplierTermOfPayments" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Mm Supplier"/>
							</f:facet>
							<h:link outcome="/mmSupplierTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemMmSupplier" value="#{forgeview:display(_item.mmSupplier)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{mmSupplierBean.converter}" id="mmSupplierTermOfPaymentBeanAddMmSupplier" value="#{mmSupplierTermOfPaymentBean.add.mmSupplier}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="mmSupplierTermOfPaymentBeanAddMmSupplier" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Term Of Payment Effective Date"/>
							</f:facet>
							<h:link outcome="/mmSupplierTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierTermOfPaymentEffectiveDate" value="#{_item.supplierTermOfPaymentEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentEffectiveDate" maxLength="10" value="#{mmSupplierTermOfPaymentBean.add.supplierTermOfPaymentEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentEffectiveDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Term Of Payment Expire Date"/>
							</f:facet>
							<h:link outcome="/mmSupplierTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierTermOfPaymentExpireDate" value="#{_item.supplierTermOfPaymentExpireDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentExpireDate" maxLength="10" value="#{mmSupplierTermOfPaymentBean.add.supplierTermOfPaymentExpireDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentExpireDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Supplier Term Of Payment Is Active"/>
							</f:facet>
							<h:link outcome="/mmSupplierTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSupplierTermOfPaymentIsActive" value="#{_item.supplierTermOfPaymentIsActive}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentIsActive" value="#{mmSupplierTermOfPaymentBean.add.supplierTermOfPaymentIsActive}"/>
								<h:message for="mmSupplierTermOfPaymentBeanAddSupplierTermOfPaymentIsActive" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(mmSupplierTermOfPaymentBean.added)}" id="sysTermOfPaymentBeanSysTermOfPaymentMmSupplierTermOfPaymentsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{mmSupplierTermOfPaymentBean.add.sysTermOfPayment}" value="#{sysTermOfPaymentBean.sysTermOfPayment}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentSdQuotations" value="Sd Quotations:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysTermOfPaymentBean.sysTermOfPayment.sdQuotations}"/>
					<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentSdQuotations" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt No"/>
							</f:facet>
							<h:link outcome="/sdQuotation/view">
								<f:param name="id" value="#{_item.qtNo}"/>
								<h:outputText id="itemQtNo" value="#{_item.qtNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationBeanAddQtNo" value="#{sdQuotationBean.add.qtNo}"/>
								<h:message for="sdQuotationBeanAddQtNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Code"/>
							</f:facet>
							<h:link outcome="/sdQuotation/view">
								<f:param name="id" value="#{_item.qtNo}"/>
								<h:outputText id="itemQtCode" value="#{_item.qtCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationBeanAddQtCode" maxLength="50" value="#{sdQuotationBean.add.qtCode}"/>
								<h:message for="sdQuotationBeanAddQtCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Descr"/>
							</f:facet>
							<h:link outcome="/sdQuotation/view">
								<f:param name="id" value="#{_item.qtNo}"/>
								<h:outputText id="itemQtDescr" value="#{_item.qtDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationBeanAddQtDescr" maxLength="100" value="#{sdQuotationBean.add.qtDescr}"/>
								<h:message for="sdQuotationBeanAddQtDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Date"/>
							</f:facet>
							<h:link outcome="/sdQuotation/view">
								<f:param name="id" value="#{_item.qtNo}"/>
								<h:outputText id="itemQtDate" value="#{_item.qtDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationBeanAddQtDate" maxLength="10" value="#{sdQuotationBean.add.qtDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdQuotationBeanAddQtDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Discount Perc"/>
							</f:facet>
							<h:link outcome="/sdQuotation/view">
								<f:param name="id" value="#{_item.qtNo}"/>
								<h:outputText id="itemQtDiscountPerc" value="#{_item.qtDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationBeanAddQtDiscountPerc" value="#{sdQuotationBean.add.qtDiscountPerc}"/>
								<h:message for="sdQuotationBeanAddQtDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdQuotationBean.added)}" id="sysTermOfPaymentBeanSysTermOfPaymentSdQuotationsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdQuotationBean.add.sysTermOfPayment}" value="#{sysTermOfPaymentBean.sysTermOfPayment}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sysTermOfPaymentBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sysTermOfPaymentBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sysTermOfPaymentBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sysTermOfPaymentBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>